﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Air_condition.DO;

namespace Air_condition.DO
{
    class Alternative
    {
        public List<Room> lRoom = new List<Room>();
        private double dbcoldProductivity = 0;
        private string sname;

        public string sName
        {
            get { return sname; }
            set { sname = value; }
        }
   
        public double dbColdProductivity
        {
            
            get { return dbcoldProductivity; }
            set { dbcoldProductivity = value; }
        }

        public void CalculationSumColdProductivity()
        {
            foreach (Room r in lRoom)
            {
                dbcoldProductivity += r.CalculateColdProductivity();
            }
        }

        public void AddRoom(Room room)
        {
            lRoom.Add(room);
        }

        public void DeleteRoom(Room room)
        {
            lRoom.Remove(room);
        }

    }
}
